var app = getApp();
var WxParse = require('../../../wxParse/wxParse.js');
Page({

  /**
   * 页面的初始数据
   */
  data: {
    detail: '',
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var id = options.id;
    this.getgg(id)
    
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    
  },

  getgg:function(id){
    var that = this;
    var param = {
      url:"api/common/msgInfo",
      data:{
        msg_id:id
      },
      success:function(e){
        console.log(e)
        that.setData({
          detail: e.data.data
        });
        WxParse.wxParse('article', 'html', e.data.data.content, that, 5);
      }
    };
    app.post(param);
  }
})